export default (state = {searchUsers: [], organizationUsers: []}, action) => {
  switch (action.type) {
    case 'REFRESH_USERS_SEARCH':
      return Object.assign({}, state, {searchUsers: action.data})
    case 'REFRESH_ORGANIZATION_USERS':
      return Object.assign({}, state, {organizationUsers: action.data})
    default:
      return state
  }
}
